﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MINERP.MODEL.FoundationModel;

namespace MINERP.MODEL.GroupMember
{
    /// <summary>
    /// 组员处用到的照片列表
    /// </summary>
    public class PhotoInfo_GM : PhotoInfo_Info
    {
        public bool IsEdit { get; set; }
        public string PhotoSize { get { return Math.Round(base.Width,2,MidpointRounding.AwayFromZero).ToString() + "*" + Math.Round(base.Height,2,MidpointRounding.AwayFromZero).ToString()+"("+Math.Round((base.Width*2.54),2,MidpointRounding.AwayFromZero).ToString("0.00")+"*"+Math.Round((base.Height*2.54),2,MidpointRounding.AwayFromZero).ToString("0.00")+")cm"; } }
        public bool SizeIsRight { get { return true; } }
        
        /// <summary>
        /// 组员提交时用于标记该照片是否需要用实际的尺寸来更新数据库的尺寸，比如说裁剪过的图片
        /// </summary>
        public int PGMStatus { get; set; }
        public double Area { get { return base.Width * base.Height * 2.54 * 2.54 / 10000; } }
    }
}
